/*
 * ========================================================================
 *
 *       Filename:  constants.h
 *
 *    Description:  This defines constants for the flash card program.
 *
 *        Version:  1.0
 *        Created:  05/04/2010 02:15:41 PM
 *       Revision:  none
 *       Compiler:  g++
 *
 *         Author:  Alex Avance (aa), aravance@gmail.com
 *        Company:  independent
 *
 * ========================================================================
 *
 * Copyright (C) 2010 Alex Avance
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-
 * 1307, USA.
 *
 * ========================================================================
 */

#ifndef _CONSTANTS_H_
#define _CONSTANTS_H_

#include <config.h>

#ifdef __WXMSW__
#define MIN_SIZE ( wxSize( 580, 400 ) )
#elif __WXMAC__
#define MIN_SIZE ( wxSize( 530, 400 ) )
#else
#define MIN_SIZE ( wxSize( 550, 400 ) )
#endif

//#define MIN_SIZE ( wxDefaultSize )

#define DEFAULT_SIZE ( wxSize( 640, 480 ) )

#define SAVE_FAIL 54
#define NO_DECK_MESSAGE( parent ) wxMessageBox( _("No deck is loaded."), _("No Deck"), wxOK | wxICON_EXCLAMATION, parent )
#define RESET_QUESTION( parent ) wxMessageBox( _("No cards left. Reset the deck?"),\
                                               _("Reset Deck"), wxYES_NO | wxICON_QUESTION, parent )

#define AUTHOR_STRING "Alex Avance"
#define VERSION_STRING VERSION
#define COPYRIGHT_STRING "(C) 2010 Alex Avance <aravance@gmail.com>"
#define DESCRIPTION_STRING "Flashcard program for making and studying flashcards.\n"\
                           "Compiled on: " __DATE__ "\n\n"\
                           "By " AUTHOR_STRING
#define SOURCE_URL "http://code.google.com/p/flashcardprogram/"
#define LICENSE_STRING COPYRIGHT_STRING"\n"\
                       "\n"\
                       "This program is free software; you can redistribute it and/or "\
                       "modify it under the terms of the GNU General Public License "\
                       "as published by the Free Software Foundation; either version 2 "\
                       "of the License, or (at your option) any later version.\n"\
                       "\n"\
                       "This program is distributed in the hope that it will be useful, "\
                       "but WITHOUT ANY WARRANTY; without even the implied warranty of "\
                       "MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the "\
                       "GNU General Public License for more details.\n"\
                       "\n"\
                       "You should have received a copy of the GNU General Public License "\
                       "along with this program; if not, write to the Free Software "\
                       "Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-"\
                       "1307, USA.\n"\
                       "\n"\
                       "Source code is available at " SOURCE_URL

#define FILE_WILDCARD _("Deck files (*.deck)|*.deck|"\
                        "XML files (*.xml)|*.xml|"\
                        "All files (*.*)|*.*")

#ifdef __WXMSW__
#define QUIT_ENTRY _("E&xit\tAlt-F4")
#else
#define QUIT_ENTRY _("&Quit\tCtrl-Q")
#endif

enum
{
// fcframe.h IDs
  ID_Study= 243,
  ID_Test,
  ID_Reset,
  ID_SaveCard,
  ID_DelCard,
  ID_HideList,
  ID_License,
// testboard.h IDs
  ID_IgnoreCase,
  ID_IgnorePunct,
  ID_KeepRight,
  ID_RandomSide,
  ID_FrontSide,
  ID_BackSide,
  ID_StatInfo,
  ID_TestAnswer,
  ID_TestShuffle,
  ID_TestReset,
  ID_TestSkip,
  ID_TestEnter,
  ID_TestDraw,
// studyboard.h IDs
  ID_StudyList,
  ID_StudyFront,
  ID_StudyBack,
  ID_StudyShuf,
  ID_StudySort,
  ID_StudyPrev,
  ID_StudyNext,
};

#endif // _CONSTANTS_H_

